import request from '@/utils/request'

// 获取列表
export function getpropertyListAPI(data){
    return request({
        url:'/park/propertyfee',
        method:'GET',
        params:data
    })
}
// 添加接口
export function addpropertyAPI(data){
    return request({
        url:'/park/propertyfee',
        method:'POST',
        data
    })
}
// 获取所有租户
export function getallenterpriseListAPI(){
    return request({
        url:'/park/all/enterprise',
        method:'GET'
    })
}
// 获取所有可租借楼宇
export function getallbuildingListAPI(){
    return request({
        url:'/park/all/building',
        method:'GET'
    })
}

// 删除
export function delpropertyfeeAPI(id){
    return request({
        url:'/park/propertyfee/'+id,
        method:'DELETE'
    })
}

// 获取预算金额
export function getpropertyfeeAPI(data){
    return request({
        url:'/park/propertyfee/pre/payment',
        method:'POST',
        data
    })
}

// 编辑账单
export function editepropertyfeeAPI(data){
    return request({
        url:'/park/propertyfee',
        method:'PUT',
        data
    })
}

// 查看账单详情
export function showpropertyfeeAPI(id){
    return request({
        url:'/park/propertyfee/'+id,
        method:'GET',
    })
}